package com.msb.serviceDriverUser.remote;

import com.msb.internalcommon.dto.ResponseResult;
import com.msb.internalcommon.reponese.TerminalResponse;
import com.msb.internalcommon.reponese.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/8 - 07 - 08 - 17:04
 * @Description: com.msb.serviceDriverUser.remote
 * @version: 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    /**
     * 创建终端调用地图服务接口
     * @param name
     * @return
     */
    @RequestMapping(method = RequestMethod.POST , value = "/terminal/add")
    public ResponseResult<TerminalResponse> addTerminal(@RequestParam String name , @RequestParam String desc);


    /**
     * 创建轨迹
     * @param tid
     * @return
     */
    @RequestMapping(method = RequestMethod.POST , value = "/track/add")
    public ResponseResult<TrackResponse> addTrack(@RequestParam String tid );

}
